const express = require("express");
const app = express();
let server = app.listen(3112);
const io = require("socket.io")(server, {cors: true});

io.on("connection", e => {
    console.log("socket连接成功");
});
io.on("messages",e=>{
    console.log(e);
})
app.listen(3113, () => {
    console.log("服务开启成功。。。。");
});
